import { onBeforeUnmount, ref } from "vue";
export default function hookstime() {
	const num = ref(1);
	const time = setInterval(() => {
		num.value++;
		console.log(num.value);

	}, 1000);
	onBeforeUnmount(() => {
		clearInterval(time);
	});
	return num
}
